﻿using Gear.Web.Api.DynamicDataApi.Model;
using Gear.Web.Api.Entities.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gear.Web.Api.DynamicDataApi.Business
{
    public interface IBusinessWorker
    {
        object _ActionSorting(HttpRequestModel model);
        bool _ActionDataForamt(int actionid);


        Task<List<Sys_cluster>> SystemPages();
        Task<List<Api_area>> AreaPages(int systemid);
        Task<List<Sys_connectionpool>> ConnectionPoolPages(int systemid);
        Task<List<Api_controller>> ControllerPages(int areaid);
        Task<List<Api_action>> ActionPages(int controllerid);
        Task<List<Api_field>> FieldPages(int actionid);


        Task<bool> SystemEdit(Sys_cluster dto);
        Task<bool> AreaEdit(Api_area dto);
        Task<bool> ConnectionPoolEdit(Sys_connectionpool dto);
        Task<bool> ControllerEdit(Api_controller dto);
        Task<bool> ActionEdit(Api_action dto);
        Task<bool> FieldEdit(Api_field dto);
    }
}
